#include "public.h"
#include <stdio.h>

//ClassLoader.getSystemClassLoader()
jobject getSystemClassLoader(JNIEnv* jni_env)
{
    char sig_buffer[512] = "\0";
    LOGI("getSystemClassLoader start...");
    jclass class_loader_claxx = jni_env->FindClass("java/lang/ClassLoader");
    snprintf(sig_buffer, 512, "()%s", JCLASS_LOADER);
    jmethodID getSystemClassLoader_method = jni_env->GetStaticMethodID(class_loader_claxx, "getSystemClassLoader", sig_buffer);
    return jni_env->CallStaticObjectMethod(class_loader_claxx, getSystemClassLoader_method);
}
